import request from '@/utils/request'

// 查询化肥信息列表
export function listHuafei(query) {
  return request({
    url: '/wuyi/huafei/list',
    method: 'get',
    params: query
  })
}

// 查询化肥信息详细
export function getHuafei(id) {
  return request({
    url: '/wuyi/huafei/' + id,
    method: 'get'
  })
}

// 新增化肥信息
export function addHuafei(data) {
  return request({
    url: '/wuyi/huafei',
    method: 'post',
    data: data
  })
}

// 修改化肥信息
export function updateHuafei(data) {
  return request({
    url: '/wuyi/huafei',
    method: 'put',
    data: data
  })
}

// 删除化肥信息
export function delHuafei(id) {
  return request({
    url: '/wuyi/huafei/' + id,
    method: 'delete'
  })
}
